package com.shenmazong.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.shenmazong.pojo.TbTaskSkillGradeDetail;
import com.shenmazong.service.TbTaskSkillGradeDetailService;
import com.shenmazong.mapper.TbTaskSkillGradeDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class TbTaskSkillGradeDetailServiceImpl extends ServiceImpl<TbTaskSkillGradeDetailMapper, TbTaskSkillGradeDetail>
implements TbTaskSkillGradeDetailService{

    @Autowired
    TbTaskSkillGradeDetailMapper tbTaskSkillGradeDetailMapper;

    @Override
    public PageInfo findTaskSkillGradeDetailList(Integer pageNum, Integer pageSize, Object skillGradeDetail) {
        PageHelper.startPage(pageNum,pageSize);
        List<TbTaskSkillGradeDetail> tbTaskSkillGradeDetails=tbTaskSkillGradeDetailMapper.findTaskSkillGradeDetailList(skillGradeDetail);
        PageInfo<TbTaskSkillGradeDetail> pageInfo = new PageInfo<>(tbTaskSkillGradeDetails);
        return pageInfo;
    }
}




